package com.example.demo.messageWall.service;

import com.example.demo.messageWall.mapper.MessageInfoMapper;
import com.example.demo.messageWall.model.MessageInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class MessageService {
    @Autowired
    public MessageInfoMapper mapper;
    public Integer insertMessage(MessageInfo messageInfo){
        return mapper.insertMessage(messageInfo);
    }
    public List<MessageInfo> getAllList(){
        return mapper.getAllList();
    }
}
